package com.glory.brepda.entity.request;

import com.glory.brepda.base.Constant;

import java.io.Serializable;
import java.util.UUID;

/**
 * FileName: HeaderBean
 * Author: XJH
 * Date: 2020/5/25 15:43
 * Description: 请求头
 * History:
 */
public class HeaderBean implements Serializable {

    private String USR;

    private String LANGUAGE;

    private String MACHINENAME;

    private String MESSAGENAME;

    private String TRANSACTIONID;

    private int ORGRRN;

    private String ORGNAME;

    private String USERNAME;

    private String EVENTTIME;

    public HeaderBean(String MessageName) {
        this.LANGUAGE = "EN";
        this.MACHINENAME = "EAP";
        this.MESSAGENAME = MessageName;
//        this.TRANSACTIONID = "c5e5e318389d4c39b914e4c10ba519d4";
//        this.TRANSACTIONID = UUID.randomUUID().toString();
        this.ORGRRN = 378341;
        this.ORGNAME = "TEST";
        this.USERNAME = Constant.CURRENT_USER;
        this.EVENTTIME = "";
    }

    public HeaderBean(String MessageName,String usr) {
        this.USR = usr;
        this.LANGUAGE = "EN";
        this.MESSAGENAME = MessageName;
        this.TRANSACTIONID = "c5e5e318389d4c39b914e4c10ba519d4";
        this.ORGRRN = 378341;
        this.ORGNAME = "TEST";
        this.USERNAME = Constant.CURRENT_USER;
    }

    public String getLANGUAGE() {
        return LANGUAGE == null ? "" : LANGUAGE;
    }

    public void setLANGUAGE(String LANGUAGE) {
        this.LANGUAGE = LANGUAGE;
    }

    public String getMESSAGENAME() {
        return MESSAGENAME == null ? "" : MESSAGENAME;
    }

    public void setMESSAGENAME(String MESSAGENAME) {
        this.MESSAGENAME = MESSAGENAME;
    }

    public String getTRANSACTIONID() {
        return TRANSACTIONID == null ? "" : TRANSACTIONID;
    }

    public void setTRANSACTIONID(String TRANSACTIONID) {
        this.TRANSACTIONID = TRANSACTIONID;
    }

    public int getORGRRN() {
        return ORGRRN;
    }

    public void setORGRRN(int ORGRRN) {
        this.ORGRRN = ORGRRN;
    }

    public String getORGNAME() {
        return ORGNAME == null ? "" : ORGNAME;
    }

    public void setORGNAME(String ORGNAME) {
        this.ORGNAME = ORGNAME;
    }

    public String getUSERNAME() {
        return USERNAME == null ? "" : USERNAME;
    }

    public void setUSERNAME(String USERNAME) {
        this.USERNAME = USERNAME;
    }

    public String getMACHINENAME() {
        return MACHINENAME;
    }

    public String getEVENTTIME() {
        return EVENTTIME;
    }

    public void setMACHINENAME(String MACHINENAME) {
        this.MACHINENAME = MACHINENAME;
    }

    public void setEVENTTIME(String EVENTTIME) {
        this.EVENTTIME = EVENTTIME;
    }
}
